/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 17655
 * Date: 2025-05-18
 * Time: 19:49
 */
public class test3 {
    public int solve(String nums) {
        // write code here
        // 数字翻译成字符串
        int n = nums.length();
        int[] dp = new int[n+1];
        dp[0] = 1;
        dp[1] = 1;
        for(int i=2;i<n;i++){
            // 切割数字
            String two = nums.substring(i-2,i);
            if(two.compareTo("10") >=0 && two.compareTo("25") <=0){
                dp[i] = dp[i-1] + dp[i-2];
            }else{
                dp[i] = dp[i-1];
            }
        }
        return dp[n];

    }
}
